package com.bw.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 
 * @TableName contract_info
 */
@TableName(value ="contract_info")
@Data
public class ContractInfo implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    private String num;

    /**
     * 
     */
    private String title;

    /**
     * 
     */
    @NotBlank(message = "房源不为空")
    private String houseName;

    /**
     * 
     */
    @NotNull(message = "金额不为空")
    @Max(value = 999,message = "最大999")
    @Min(value = 10,message = "最小10")
    private BigDecimal price;

    /**
     * 
     */
    private String startTime;

    /**
     * 
     */
    private String endTime;

    /**
     * 
     */
    private String customerName;

    /**
     * 
     */
    private String customerPhone;

    /**
     * 
     */
    private String customerCard;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private Integer userId;

    @TableField(exist = false)
    private String createName;

    @TableField(exist = false)
    private String createStartTime;

    @TableField(exist = false)
    private String createEndTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}